package StudyCode.summary.Basic.stringbuilder;

import java.util.Scanner;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBuilderMarkVowel {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("输入英文字符串并回车: ");
		String s = sc.nextLine();

		StringBuilder sb = new StringBuilder(s);
		for (int i = 0; i < s.length(); i++) {
			char c = s.charAt(i);
			if ((c == 'A') || (c == 'a')
					|| (c == 'E') || (c == 'e')
					|| (c == 'I') || (c == 'i')
					|| (c == 'O') || (c == 'o')
					|| (c == 'U') || (c == 'u')) {
				sb.setCharAt(i, '*');
			}
		}
		System.out.println(s);
		System.out.println(sb.toString());
	}
}
